package com.atguigu.gulimall.ware.service;

import com.atguigu.common.vo.WareStock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author chenhaifu
 * @email 542704865@qq.com
 * @date 2021-03-06 12:11:26
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询sku商品是否有库存
     *
     * @param skuIds
     * @return
     */
    List<WareStock> getSkuStock(List<Long> skuIds);
}

